package xj.graph2d.shapes.block;

import xj.graph2d.DrawShape;
import xj.graph2d.DrawShapeBase;

public class ClassBlock 
  extends BlockShape {

  public ClassBlock() { 
    this(false);
  }

  public ClassBlock(boolean createComp) { 
    super(createComp);
    setBlockType(CLASS_BLOCK);
  }

  public ClassBlock(float x1, float y1, float x2, float y2) { 
    this(x1, y1, x2, y2, false);
  }

  public ClassBlock(float x1, float y1, float x2, float y2,
		    boolean createComp) { 
    super(x1, y1, x2, y2, createComp);
    setBlockType(CLASS_BLOCK);
  }

  @Override
  public DrawShape makeInstance() {
    return new ClassBlock(comp != null);
  }

  @Override
  public void copyTo(DrawShapeBase s) 
    throws CloneNotSupportedException {
    super.copyTo(s);
    if (s instanceof ClassBlock) {
      ClassBlock b = (ClassBlock) s;

    }
  }

}